
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type ShippingTemplatesFreeRequest struct {

	ProvinceId string `json:"province_id" form:"province_id"`

	TempId string `json:"temp_id" form:"temp_id"`

	CityId string `json:"city_id" form:"city_id"`

	Number string `json:"number" form:"number"`

	Price string `json:"price" form:"price"`

	Type string `json:"type" form:"type"`

	Uniqid string `json:"uniqid" form:"uniqid"`

}

func (r *ShippingTemplatesFreeRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *ShippingTemplatesFreeRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"province_id": "required",

		"temp_id": "required",

		"city_id": "required",

		"number": "required",

		"price": "required",

		"type": "required",

		"uniqid": "required",

	}
}

func (r *ShippingTemplatesFreeRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *ShippingTemplatesFreeRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *ShippingTemplatesFreeRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
